home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / ps40sdk / examples / export / outbound / common / outbound.r < prev    next >
Encoding:
Text File  |  1996-11-08  |  4.0 KB  |  156 lines

  1. /*
  2.     File: Outbound.r
  3.  
  4.     Copyright (c) 1990-1, Thomas Knoll.
  5.     Copyright (c) 1992-6, Adobe Systems Incorporated.
  6.     All rights reserved.
  7.  
  8.     Rez source file for Outbound export example.
  9. */
  10.  
  11. /********************************************************************************/
  12. /* Defines required for include files */
  13.  
  14. #define plugInName            "Outbound"
  15. #define VersionString        "4.0"
  16.  
  17. /********************************************************************************/
  18.  
  19. #if Macintosh
  20. #include "Types.r"
  21. #include "SysTypes.r"
  22. #include "PIGeneral.r"
  23. #include "PIUtilities.r"
  24. #include "DialogUtilities.r"
  25. #endif
  26.  
  27. #if MSWindows
  28. #include "PIGeneral.h"
  29. #include "PIUtilities.r"
  30. #include "WinDialogUtils.r"
  31. #endif
  32.  
  33. #include "PIActions.h"
  34.  
  35. /********************************************************************************/
  36.  
  37. #define plugInComment         "outbound example export plug-in"
  38. #define vendorName            "AdobeSDK"
  39.  
  40. #define ourSuiteID            'sdK5'
  41. #define ourClassID            'outB'
  42. #define ourEventID            typeNull // must be this
  43.  
  44. /********************************************************************************/
  45.  
  46. resource 'PiPL' (ResourceID, purgeable)
  47. {
  48.     {
  49.         Kind { Export },
  50.         Name { plugInName "..." },
  51.         Version { (latestExportVersion << 16) | latestExportSubVersion },
  52.  
  53.         #if Macintosh
  54.         Code68K { Export, $$ID },
  55.         CodePowerPC { 0, 0, "" },
  56.         #endif
  57.  
  58.         #if MSWindows
  59.         CodeWin32X86 { "ENTRYPOINT" },
  60.         #endif
  61.  
  62.         HasTerminology { ourClassID, ourEventID, ResourceID, "" },
  63.         /* class ID, event ID, aete ID, uniqueString */
  64.         
  65.         SupportedModes
  66.             {
  67.             noBitmap, doesSupportGrayScale,
  68.             doesSupportIndexedColor, doesSupportRGBColor,
  69.             doesSupportCMYKColor, doesSupportHSLColor,
  70.             doesSupportHSBColor, doesSupportMultichannel,
  71.             doesSupportDuotone, doesSupportLABColor
  72.             },
  73.             
  74.         EnableInfo { "in (PSHOP_ImageMode, GrayScaleMode, IndexedColorMode,"
  75.                           "RGBMode, CMYKMode, HSLMode, HSBMode, MultichannelMode,"
  76.                           "DuotoneMode, LABMode)" }
  77.  
  78.     }
  79. };
  80.  
  81. resource 'PiMI' (ResourceID, purgeable)
  82.       latestExportVersion,
  83.       latestExportSubVersion,
  84.       0,
  85.       supportsGrayScale +
  86.       supportsIndexedColor +
  87.       supportsRGBColor +
  88.       supportsCMYKColor +
  89.       supportsHSLColor +
  90.       supportsHSBColor +
  91.       supportsMultichannel +
  92.       supportsDuotone +
  93.       supportsLABColor,
  94.       '    ', /* No required host */
  95.       {},
  96. };
  97.  
  98. resource 'STR#' (ResourceID, purgeable)
  99.     {
  100.         {
  101.         "Outbound export to file:"
  102.         }
  103.     };
  104.  
  105. /* About resources */
  106.  
  107. resource StringResource (AboutID, "About Text", purgeable)
  108. {
  109.     plugInName "\n\n"
  110.     "Version " VersionString " "
  111.     "Release " ReleaseString "\n"
  112.     "Copyright ⌐ 1992-6, Adobe Systems Incorporated.\n"
  113.     "All rights reserved.\n\n"
  114.     "An example plug-in export module for Adobe Photoshop¿."
  115. };
  116.  
  117. /* scripting dictionary resource */
  118.  
  119. resource 'aete' (ResourceID, purgeable)
  120. {
  121.     1, 0, english, roman,                                    /* aete version and language specifiers */
  122.     {
  123.         vendorName,                                            /* vendor suite name */
  124.         "Adobe example plug-ins",                            /* optional description */
  125.         ourSuiteID,                                            /* suite ID */
  126.         1,                                                    /* suite code, must be 1 */
  127.         1,                                                    /* suite level, must be 1 */
  128.         {},                                                    /* structure for filters */
  129.         {                                                    /* non-filter plug-in class here */
  130.             vendorName " outbound",                            /* unique class name */
  131.             ourClassID,                                        /* class ID, must be unique or Suite ID */
  132.             "outbound plug-in",                                /* optional description */
  133.             {                                                /* define inheritance */
  134.                 "<Inheritance>",                            /* must be exactly this */
  135.                 keyInherits,                                /* must be keyInherits */
  136.                 classExport,                                /* parent: Format, Import, Export */
  137.                 "parent class export",                        /* optional description */
  138.                 flagsSingleProperty,                        /* if properties, list below */
  139.                 
  140.                 "in",                                        /* our path */
  141.                 keyIn,                                        /* common key */
  142.                 typePlatformFilePath,                        /* correct path for platform */
  143.                 "file path",                                /* optional description */
  144.                 flagsSingleProperty
  145.                 
  146.                 /* no more properties */
  147.             },
  148.             {}, /* elements (not supported) */
  149.             /* class descriptions */
  150.         },
  151.         {}, /* comparison ops (not supported) */
  152.         {}    /* any enumerations */
  153.     }
  154. };
  155.